import request from '@/router/axios'

//活动列表
export function activityList(query) {
	return request({
		url: '/cp/activity/query',
		method: 'get',
		params: query
	})
}

// 新增
export function addActivity(obj) {
	return request({
		url: '/cp/activity/save',
		method: 'post',
		data: obj
	})
}

// 编辑
export function updateActivity(obj) {
	return request({
		url: '/cp/activity/update',
		method: 'put',
		data: obj
	})
}

// 删除
export function deleteActivity(obj) {
	return request({
		url: '/cp/activity/delete',
		method: 'delete',
		params: obj
	})
}

// 推审、通过、不通过、发布、暂停
export function auditStatus(obj) {
	return request({
		url: '/cp/activity/audit',
		method: 'put',
		data: obj
	})
}
